package com.muqi.app.qlearn.modles;

import java.io.Serializable;
import java.util.List;

import org.json.JSONObject;

import com.google.gson.Gson;

public class HomeWorkBean implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public String class_job_id;
	public String subject_name;
	public String im_user_id;
	public String nickname;
	public String read_status;
	private String is_confirm;
	private String parents_student_confirm;
	public String create_time;
	public String create_week;
	public String content;
	public String warning;
	
	public String flowercount;
	public String commentcount;
	public AvatarInfo user_fileurl;
	public MediaInfo subject_fileurl;
	public List<HomeWorkFile> classJobFiles;
	
	public String getConfirmState(){
		return is_confirm;
	}
	public void setConfirmState(String is_confirm){
		this.is_confirm = is_confirm;
	}
	
	public String getWithState(){
		return parents_student_confirm;
	}
	public void setWithState(String parents_student_confirm){
		this.parents_student_confirm = parents_student_confirm;
	}
	
	public static HomeWorkBean fromJson(JSONObject json) {
		if(json != null){
            return new Gson().fromJson(json.toString(),HomeWorkBean.class);
        }
		return null;
	}
}
